package com.mzz.structure.composite;

/**
 *
 * @author xushijian
 * @date 18/6/8 上午9:10
 */
public abstract class Component {

    protected String name;

    public Component(String name) {
        this.name = name;
    }

    abstract void add(Component component);

    abstract void remove(Component component);

    abstract void foreach();
}
